package com.leapp.sk.binder.login

import com.example.mvp.binder.BaseDataBinder
import com.leapp.sk.viewdelegate.login.UserAgreementDelegate

/**用户协议数据视图绑定控制器
 * @author  chaohaipeng  on 2018/7/10.
 */
class UserAgreementBinder : BaseDataBinder<UserAgreementDelegate, String> {
    override fun viewBindModel(viewDelegate: UserAgreementDelegate?, data: String?) {
        viewDelegate?.setTitle(data)
        viewDelegate?.setWebView("https://www.aliyun.com/jiaocheng/9551.html")
    }

    override fun getDataClass(): Class<String> {
        return String::class.java

    }
}